project(subcatch)
set(VERSION 2.0.0)
set(rootpath ${PROJECT_SOURCE_DIR})
message(${rootpath})
include_directories( ${rootpath}/src )
set(LIB_SRC 
	${rootpath}/src/utlist.h
	${rootpath}/src/uthash.h
	${rootpath}/src/sc_internal.h
	${rootpath}/src/sc_error.h
	${rootpath}/src/subcatch.c
	${rootpath}/src/topic_tok.c
)

add_library(subcatch STATIC ${LIB_SRC})
link_directories( ${rootpath}/bin )
add_executable(sub "example/test_sub.cpp" )

target_link_libraries(sub subcatch)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)